const obj1 = {
  first: '薛',
  last: '诺',
  get sayName() {
    return this.first + this.last;
  }
};
// console.log(obj1);
const descriptors = Object.getOwnPropertyDescriptors(obj1);
// console.log(descriptors)
const obj2 = Object.defineProperties({}, descriptors);
obj2.last = '帅康';
console.log(obj2.sayName)
// const newObj = {
//   get a() {
//   }
// }
// const newObj2 = Object.assign({}, newObj);
// console.log(newObj